package com.masterclient.app.businessmodule.minemodule.api;

import com.eoner.baselib.container.CommonBaseResponse;
import com.eoner.baselibrary.bean.personal.GivingListBean;
import com.eoner.baselibrary.bean.personal.MedalDetailBean;
import com.eoner.baselibrary.bean.personal.OtherMsgBean;
import com.masterclient.app.businessmodule.minemodule.index.tutor.InviteInfoBean;
import com.masterclient.app.businessmodule.minemodule.point.model.PointMainBean;
import com.masterclient.app.businessmodule.minemodule.withdraw.bean.WithDrawSuccessBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * 文件名：MineApi
 * 描 述：只处理我的相关的v1接口
 * 作 者：gyq
 * 时 间：2021-2-22
 */
public interface MineApi {

    /**
    * 获取勋章
    * */
    @GET("v1/customer/medal/info/get")
    io.reactivex.Observable<MedalDetailBean> medalInfoGet(@Query("medal_id") String medal_id);

    /**
    * 获取邀请好友信息
    * */
    @GET("/v1/customer/share")
    io.reactivex.Observable<CommonBaseResponse<InviteInfoBean>> getShareInfo();

    /**
     * 清除我的足迹
     */
    @POST("/v1/customer/del/footprint")
    Observable<CommonBaseResponse> clearFootPrintInfo();

    /**
    * 提现
    * */
    @POST("/v1/customer/balance/withdraw/apply")
    Observable<WithDrawSuccessBean> balanceCashAdd(@Body RequestBody body);

    /**
    * 金币
    * */
    @GET("v1/integral/customer/index")
    Observable<CommonBaseResponse<PointMainBean>> pointMain();

    /**
    * 消息
    * */
    @GET("/v1/event/presentation/notice/list")
    io.reactivex.Observable<GivingListBean> getNoticeList();

    /**
    * 消息中心--其他消息
    * */
    @GET("/v1/customer/message/other/list")
    Observable<CommonBaseResponse<OtherMsgBean>> getOtherMsg(@Query("page") String page);

}
